<include file="template:style"/>
<form role="form" id="searchForm" action="{:U('Member/index')}" method='post' class="form-horizontal">
    <div class="form-group">
        <!--<include file="template:search" results="params" name="nickname" label="昵称" attr=''/>-->
        <include file="template:search" results="params" name="account" label="账号" attr=''/>
        <include file="template:search" results="params" name="parentaccount" label="推荐人账户" attr='data-rule="length(~20)" maxlength="20"'/>
		<include file="template:select" results="params" name="isdisable" label="是否禁用" list="isDisable" value="{$params.isdisable}" attr=''/>
        <!--<include file="template:time" results="params" name="createtimeStart" label="创建时间开始" attr=''/>
        <include file="template:time" results="params" name="createtimeEnd" label="创建时间结束" attr=''/>
        <include file="template:time" results="params" name="updatetimeStart" label="更新时间开始" attr=''/>
        <include file="template:time" results="params" name="updatetimeEnd" label="更新时间结束" attr=''/>-->
		<include file="template:select" results="params" name="pageSize" list="page" label="每页条数" />
        <div class="col-xs-12">
            <div class="col-xs-4 col-sm-3 col-md-2 col-lg-1">
                <div class="row">
                    <include file="template:addBtn" url="{:U('Member/addNewUser')}" height="80%" width="90%"/>
                </div>
            </div>
			<div class="col-xs-4 col-sm-3 col-md-2 col-lg-1 pull-left">
                <div class="row">
                </div>
            </div>
            <div class="col-xs-4 col-sm-3 col-md-2 col-lg-1 pull-right">
                <div class="row">
                    <include file="template:searchBtn"/>
                    <include file="template:reloadBtn"/>
                </div>

            </div>
            </div>
        </div>
    </div>
</form>
<div class="table-responsive">
    <table class="table table-bordered">
        <thead>
        <tr>
            <th nowrap="nowrap">ID</th>
            <th nowrap="nowrap">账号</th>
            <th nowrap="nowrap">昵称</th>
            <th nowrap="nowrap">推荐人账户</th>
            <th nowrap="nowrap">余额</th>
            <th nowrap="nowrap">积分</th>
            <th nowrap="nowrap">是否禁用</th>
            <th nowrap="nowrap">创建时间</th>
            <th nowrap="nowrap">更新时间</th>
            <!--<th nowrap="nowrap">资料审核</th>-->
            <th nowrap="nowrap">操作</th>
        </tr>
        </thead>
        <tbody>
        <volist name="list" id="vo">
            <tr>
				<td nowrap="nowrap">{$vo.id}</td>
                <td nowrap="nowrap">{$vo.account}</td>
				<td nowrap="nowrap">{$vo.nickname}</td>
				<td nowrap="nowrap">{$vo.parentaccount}</td>
                <td nowrap="nowrap">{$vo.balance}</td>
                <td nowrap="nowrap">{$vo.integral}</td>

				<td nowrap="nowrap">{$vo.isdisable|getDropdownList="isDisable",###}</td>
                <td nowrap="nowrap">{$vo.createtime}</td>
                <td nowrap="nowrap">{$vo.updatetime}</td>
                <!--<td nowrap="nowrap">
                    <if condition="$vo['identitychk'] == 0">
                        未上传
                    <elseif condition="$vo['identitychk'] == 1" />
                        审核通过
                    <elseif condition="$vo['identitychk'] == 2" />
                        待审核
                    <else />
                        驳回
                    </if>
                </td>-->
                <td nowrap="nowrap">
                    <!-- 启用、禁用 -->
                    <eq name="vo.isdisable" value="1">
                        <i class="fa fa-play qg-tooltip qg-op-btn" data-toggle="tooltip" data-placement="top" title="启用" onclick="confirmUpdate('{:U(\'Member/enable\')}','{$vo.id}','确定要启用吗？')"></i>
                        <else/>
                        <i class="fa fa-stop qg-tooltip qg-op-btn" data-toggle="tooltip" data-placement="top" title="禁用" onclick="confirmUpdate('{:U(\'Member/disable\')}','{$vo.id}','确定要禁用吗？')"></i>
                    </eq>

                   <!-- <eq name="vo.identitychk" value="1">
                        <else/>
                        <i class="fa fa-user qg-op-btn qg-tooltip" data-toggle="tooltip" data-placement="top" title="资料审核" onclick="modal('{:U(\'Member/dataReview\', array(\'id\'=>$vo[\'id\']))}', '资料审核')"></i>
                    </eq>-->
                    <i class="fa fa-key qg-op-btn qg-tooltip" data-toggle="tooltip" data-placement="top" title="金额积分" onclick="modal('{:U(\'Member/updateBalanceIntegral\', array(\'id\'=>$vo[\'id\']))}', '金额积分')"></i>

                    <i class="fa fa-user qg-op-btn qg-tooltip" data-toggle="tooltip" data-placement="top" title="发送消息" onclick="modal('{:U(\'Member/sendMessage\', array(\'id\'=>$vo[\'id\']))}', '发送消息')"></i>
                    <!--编辑资料-->
                    <i class="fa fa-edit qg-op-btn qg-tooltip" data-toggle="tooltip" data-placement="top" title="编辑" onclick="modal('{:U(\'Member/edit\', array(\'id\'=>$vo[\'id\']))}', '编辑')"></i>
                    <!--删除-->
                    <i class="fa fa-trash-o qg-tooltip qg-op-btn" data-toggle="tooltip" data-placement="top" title="删除" onclick="confirmUpdate('{:U(\'Member/delete\')}','{$vo.id}','确定要删除吗？')"></i>
                </td>
            </tr>
        </volist>
        </tbody>
    </table>
</div>
{$page}